package com.wjk.kylin.rpc.core.netty.server;

import com.wjk.kylin.rpc.core.netty.params.PingMessage;
import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 心跳
 * @author wjk
 */
@ChannelHandler.Sharable
public class PingMessageHandle extends SimpleChannelInboundHandler<PingMessage> {
    private static final Logger LOGGER = LoggerFactory.getLogger(PingMessageHandle.class);

    @Override
    protected void channelRead0(ChannelHandlerContext ctx, PingMessage msg) throws Exception {
        LOGGER.debug(">>>>>>>>>>> kylin-rpc provider netty server read beat ping.");
    }
}
